<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
<%@taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="/WEB-INF/tld/application.tld" prefix="app" %>

	<logic-el:present name="alunosPresentesDebitoList" scope="request">
		<table style="width:600px;height:150px">
			<tr>
				<td valign="top">
					<table style="width: 100%" class="tbDadosConsulta">
						<tr>
							<th style="width:25px"></th>
							<th>Nome</th>
							<th style="width:110px">CPF</th>
							<th style="width:130px">Curso</th>
							<th style="width:110px">Sala</th>
							<th style="width:90px">Valor</th>
						</tr>
						<logic-el:iterate id="bean" name="alunosPresentesDebitoList" scope="request" indexId="i">
							<tr class="linha${i%2}">
								<td style="text-align: center">
									<a href="javascript:carregaEfetuarPagamento('matricula', ${bean.codigo})">
										<img src="_images/attention.gif" border="0"/>
									</a>									
								</td>
								<td style="text-align: left" title="${bean.aluno.nome}">${bean.alunoNome}</td>
								<td style="text-align: center">
									<a href="#" onclick="window.location = 'consultarAluno.do?method=iniciar&aluno=${bean.aluno.codigo}'">${bean.aluno.cpf}</a>
								</td>
								<td style="text-align: left" title="${bean.turma.curso.nome}">${bean.cursoNome}</td>
								<td style="text-align: center">${bean.turma.sala.descricao}</td>
								<td style="text-align: right">
									<bean:write name="bean" property="ordemServico.devedor" format="###,##0.00" locale="defaultLocale"/>
								</td>
							</tr>
						</logic-el:iterate>
						<input type="hidden" name="alunosPresentesDebitos" value=""/>							
					</table>
				</td>
			</tr>
		</table>
	</logic-el:present>
	<logic-el:notPresent name="alunosPresentesDebitoList" scope="request">
		<table style="width:600px;height:70px">
			<tr>
				<td valign="top">
					<table style="width: 100%" class="tbDadosConsulta">
						<tr>
							<td>Não há alunos presentes com débito neste período.</td>
						</tr>				
					</table>
				</td>
			</tr>
		</table>
	</logic-el:notPresent>
